package com.guigu.guliorder.entity.dto;


import com.guigu.gulicommon.constant.enumes.order.MqMsgStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

import static com.guigu.gulicommon.constant.CheckParametersConstant.MQ_MESSAGE_ID_CANNOT_BE_NULL;

/**
 * 修改mq消息通用入参
 *
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/8/21 18:26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class UpdateMqMessageDto {
    /**
     * 消息id
     */
    @NotNull(message = MQ_MESSAGE_ID_CANNOT_BE_NULL)
    private String messageId;
    /**
     * 消息内容
     */
    private String content;
    /**
     * 消息队列
     */
    private String toExchane;
    /**
     * 路由键
     */
    private String routingKey;
    /**
     * 消息类型
     */
    private String classType;

    /**
     * 0-新建 1-已发送 2-错误抵达 3-已抵达
     */
    private MqMsgStatus messageStatus;
}
